import request from '@/utils/request'

export function getFallEasy(page = 1, per_page = 12, class_id, type = 'article') {
  if (class_id) {
    return request({
      url: `/content`,
      method: 'get',
      params: {
        type,
        page,
        per_page,
        class_id
      }
    })
  } else {
    return request({
      url: `/content`,
      method: 'get',
      params: {
        type,
        page,
        per_page
      }
    })
  }
}
